﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Mvc;
using System.Web.Routing;
using MvcEngine.Core;
using MvcEngine.Core.Content;
using System.Web.Mvc;
using MvcEngine.Gallery.Components.Extensions;
using MvcEngine.Mvc.Extensions;

namespace MvcEngine.Gallery.Commands
{
    public class GalleryInstallCommand : ControlCommand
    {
        public override string GetUrl(RequestContext context)
        {
            var pageId = new Guid(context.RouteData.Values["pageId"].ToString());

            UrlHelper urlHelper = new UrlHelper(context);
            return urlHelper.GalleryInstall(pageId);
        }
    }
}
